/*
 * @Author: jiaxiuc
 * @Date: 2024-12-12 09:34:17
 * @LastEditors: jiaxiuc
 * @LastEditTime: 2025-02-05 16:20:40
 */
import App from './App';

// #ifndef VUE3
import Vue from 'vue';
import './uni.promisify.adaptor';
Vue.config.productionTip = false;
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
App.mpType = 'app';
const app = new Vue({
  ...App
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
export function createApp() {
  const app = createSSRApp(App);
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
  }
  return {
    app
  };
}
// #endif
